package ex.com.jm.food.entity;

import java.io.Serializable;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;

import org.hibernate.annotations.GenericGenerator;

/**
 * 企业盈利 实体层
 * @author zhaojw
 *
 */
@Entity
@Table(name="jm_companyprofit")
public class CompanyProfit implements Serializable {

	private static final long serialVersionUID = 1L;

	@Id
	@GenericGenerator(name="cp_id",strategy="uuid")
	@GeneratedValue(generator="cp_id")
	@Column(name="cp_id",nullable=false,unique=true,length=32)
    private String cpId;//主键id】
	@Column(name="menu_id",nullable=false,length=32)
    private String menuId;//菜单表id
	@Column(name="com_id",nullable=false,length=32)
    private String comId;//企业id
	@Column(name="menu_profit",nullable=false,length=11)
    private Double menuProfit;//此次收益，用户结算时插入，menuNum*menuPrice
	@Column(name="cp_date",nullable=false,length=32)
    private String cpDate;//收益日期
	@Column(name="menu_num",nullable=false,length=11)
    private Integer menuNum;//卖出的菜单数量
	@Column(name="menu_price",nullable=false,length=32)
    private Double menuPrice;//卖出的菜单单价
	public String getCpId() {
		return cpId;
	}
	public void setCpId(String cpId) {
		this.cpId = cpId;
	}
	public String getMenuId() {
		return menuId;
	}
	public void setMenuId(String menuId) {
		this.menuId = menuId;
	}
	public String getComId() {
		return comId;
	}
	public void setComId(String comId) {
		this.comId = comId;
	}
	public Double getMenuProfit() {
		return menuProfit;
	}
	public void setMenuProfit(Double menuProfit) {
		this.menuProfit = menuProfit;
	}
	public String getCpDate() {
		return cpDate;
	}
	public void setCpDate(String cpDate) {
		this.cpDate = cpDate;
	}
	public Integer getMenuNum() {
		return menuNum;
	}
	public void setMenuNum(Integer menuNum) {
		this.menuNum = menuNum;
	}
	public Double getMenuPrice() {
		return menuPrice;
	}
	public void setMenuPrice(Double menuPrice) {
		this.menuPrice = menuPrice;
	}
}
